<?php
include_once("conServer.php");
$account = $_POST["username"];
$pwd = $_POST["password"];
echo $account."------".$pwd;
$sql = "select ID FROM users where account='".$account."'and password='".$pwd."'";
echo $sql;
$rs = $conn->query($sql);
if ($rs->num_rows > 0) {
    Session_start();
    $_SESSION["username"]= $account;
    $conn->close();
    header("location:../index.php");
} else {
    $conn->close();
    header("location:../login.php?message=用户密码不一致");
}
